import request from '@/utils/request';
import da from "element-ui/src/locale/lang/da";



// 获取历史数据
export function getUnitInputData (projectId) {
  let url = `/renovation/prophaseSurvey/result/detail?projectId=${projectId}`;
  return request({
    url: url,
    method: 'post',
  })
}

// 获取项目测量单位信息
export function getUnitSectionData (projectId) {
  let url = `/renovation/prophaseSurvey/result/surveyDetail?projectId=${projectId}`;
  return request({
    url: url,
    method: 'post',
  })
}

// 获取前期测绘基本信息
export function getMappingBasicData (projectId) {
  let url = `/renovation/prophaseSurvey/surveyData/detail?projectId=${projectId}`;
  return request({
    url: url,
    method: 'post',
  })
}

// 根据企业主键查询人员
export function userByEnterprise (enterpriseid) {
  let url = `/pc/system/app_user/6_get_user_by_enterprise_id?enterpriseid=${enterpriseid}`;
  return request({
    url: url,
    method: 'post',
  })
}

// 前期测绘结果录入保存
export function saveMappingResult (data) {
  let url = `/renovation/prophaseSurvey/result/save`;
  return request({
    url: url,
    method: 'post',
    json: data
  })
}

// 上传前期测绘成果压缩包
export function uploadEarlyMappingZip(data) {
  const url = `/renovation/prophaseSurvey/result/upload`
  return request({
    url: url,
    method: 'post',
    upload: data
  })
}



